Skip to main content

Git 常用命令

Git 常用命令

git add .
git commit -m "feature" --date="2025-8-01T12:35:00+0800"
git push


git config credential.helper store 以明文存在文件`~/.git-credentials`内

git config credential.helper 'cache --timeout=900' 存在内存内,缓存900s

git config credential.helper 'cache --timeout=3600'

退出登录

rm ~/.git-credentials
git credential-cache exit